package org.feiye.studyday04;

import java.util.Scanner;

public class Test {
public static void main(String[] args) {
	// 老师给张浩一道测试题，让他先上机编写程序完成，然后老师检查是否合格。如果不合格，则继续编写……
		String str = "";
		Scanner sc = new Scanner(System.in);
		do {
			System.out.println("先上机编写程序完成");
			System.out.println("合格了吗（y/n）?");
			str = sc.next();
			System.out.println("继续编写！");
			System.out.println("");
		} while (!"y".equals(str));
		System.out.println("合格了！");
	}
}


